package com.t.blog.controller;

import com.t.blog.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.t.pro.pojo.SysUserInfoPojo;
import t.microservices.fw.common.interResult.R;

import javax.servlet.http.HttpServletRequest;

/**
 * 〈一句话功能简述〉<br>
 * 〈用户信息控制类〉
 *
 * @author a0000
 * @create 2024/2/4 16:35
 * @since 1.0.0
 */
@RestController
@RequestMapping("userInfo")
public class InfoController {

    @Autowired
    private SysUserService userService;

    @GetMapping
    public R<SysUserInfoPojo> getUserInfo(HttpServletRequest request){
        //从 request 中获取token
        //token中获取信息
        userService.getUserById();
        return R.success();
    }

}
